package models

type SignUpParams struct {
	Name string `json:"name" binding:"required"`
	Password string `json:"password" binding:"required"`
	RePassword string `json:"re_password" binding:"required"`
	Email string `json:"email"`
	Gender string `json:"gender"`
}

type LoginParams struct {
	Name string `json:"name" binding:"required"`
	Password string `json:"password" binding:"required"`
}

type VoteData struct {
	ArticleId int64 `json:"article_id" binding:"required"`
	Direction int8 `json:"direction" binding:"oneof=-1 0 1"` //赞成1，反对-1，不投票 0
}